import 'package:flutter/material.dart';

class ZSAppTheme {
  //1.共有属性
  static const double bodyFontSize = 14;
  static const double smallFontSize = 16;
  static const double normalFontSize = 20;
  static const double largeFontSize = 24;
  static const double xlargeFontSize = 30;

  static const MaterialColor normalColor = Colors.teal;
  static const MaterialColor darkColor = Colors.grey;

  //2.普通模式
  static final normalTheme = ThemeData(
      canvasColor: Color.fromRGBO(255, 254, 222, 1),
      textTheme: TextTheme(
        bodyText2: TextStyle(fontSize: bodyFontSize),
        headline4: TextStyle(fontSize: smallFontSize, color: Colors.black87),
        headline3: TextStyle(fontSize: normalFontSize, color: Colors.black87),
        headline2: TextStyle(fontSize: largeFontSize, color: Colors.black87),
        headline1: TextStyle(fontSize: xlargeFontSize, color: Colors.black87,fontWeight: FontWeight.w400),
      ), colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.pink).copyWith(secondary: Colors.amber));

  //3.暗黑模式
  static final darkTheme = ThemeData(
    primarySwatch: darkColor,
    textTheme: TextTheme(
        bodyText2: TextStyle(fontSize: normalFontSize, color: darkColor)),
    floatingActionButtonTheme: FloatingActionButtonThemeData(
      foregroundColor: Colors.black54,
    ),
  );
}
